package na.learn.java.threads;

import java.util.ArrayList;
import java.util.Iterator;

public class TmpList {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		ArrayList addInsList = new ArrayList();
		System.out.println(addInsList.size());
		
		String a = "A";
		String b = "B";
		String c = "A";
		
		addInsList.add(a);
		addInsList.add(b);
		
		if(addInsList.contains(a))
			System.out.println("A is present");
		
		addInsList.remove(c);
		
		if(! addInsList.contains(a))
			System.out.println("a is Not present");
		
			
				
		
		for(int count = 1; count <= new Integer("01").intValue(); count++)
			addInsList.add("ADDINS" + count);
			

		for (Iterator iter = addInsList.iterator(); iter.hasNext(); ) {
			System.out.println("" + (String) iter.next());

		}
	}
}
